UCF STIG Viewer Logo

RHEL 9 must prevent code from being executed on file systems that are imported via Network File System (NFS).


Overview

Finding ID Version Rule ID IA Controls Severity
V-257855 RHEL-09-231070 SV-257855r925552_rule Medium
Description
The "noexec" mount option causes the system not to execute binary files. This option must be used for mounting any file system not containing approved binary as they may be incompatible. Executing files from untrusted file systems increases the opportunity for nonprivileged users to attain unauthorized administrative access.
STIG Date
Red Hat Enterprise Linux 9 Security Technical Implementation Guide 2023-12-01

Details

Check Text ( C-61596r925550_chk )
Verify RHEL 9 has the "noexec" option configured for all NFS mounts with the following command:

$ cat /etc/fstab | grep nfs

192.168.22.2:/mnt/export /data nfs4 rw,nosuid,nodev,noexec,sync,soft,sec=krb5:krb5i:krb5p

If no NFS mounts are configured, this requirement is Not Applicable.

If the system is mounting file systems via NFS and the "noexec" option is missing, this is a finding.
Fix Text (F-61520r925551_fix)
Update each NFS mounted file system to use the "noexec" option on file systems that are being imported via NFS.